<body>
<div class="path fn-clear"><span class="fb">首页</span><a href="{url('fragment/index')}">资源碎片</a></div>
<div class="button-nav">
    <a href="{url('fragment/add',array(id=>$pid,type=>1))}" class="button button-blank link" title="增加碎片"><i class="iconfont" title="增加碎片">&#xF023;</i> 增加碎片</a>
</div>
<div class="m5">
<table class="table table-bordered table-striped" width="100%">
<thead>
    <tr>
        <th class="fn-tac w20">#</th>
        <th class="fn-tac w100">标签</th>
        <th class="fn-tal">碎片名称</th>
        <th class="fn-tac w60">站点ID</th>
        <th class="w120 fn-tac">更新时间</th>
        <th class="w80 fn-tac">操作</th>
    </tr>
</thead>
<tbody>
{loop $list $vo}
<tr>
    <td class="fn-tac">{$vo['id']}</td>
    <td class="fn-tac"><input class="input w80 h20 p0 fn-tac" type="text" value="{inc:{$vo['id']}}" /></td>
    <td class="fn-tal"><a title="编辑" href="{url('fragment/edit',array(id=>$vo['id'],type=>1))}">{$vo['title']}</a></td>
    <td class="fn-tac">{$vo['language']}</td>
    <td class="fn-tac">{date('Y-m-d H:i:s',$vo['uptime'])}</td>
    <td class="fn-tac tip"><a title="编辑" href="{url('fragment/edit',array(id=>$vo['id'],type=>1))}">编辑</a>/<a href="###" class="del" title="删除" url="{url('fragment/index',array(id=>$vo['id'],act=>del))}">删除</a></td>
</tr>
{/loop}
</tbody>
</table>
</div>
<div id="page" class="n-r m5">{$page}</div>
<script type="text/javascript">
Do('base','Dialog',function(){
  $('.del').click(function(){
    $(this).cpDelete();
  });
})
</script>
</body>